In a large skillet, over medium heat, cook the onion and garlic in the olive oil, until the onion is softened.
Add the beef, salt, and black pepper and cook until the beef is browned.
Add the tomatoes, paste, chicken stock, sugar, oregano, bay leaves, and red pepper flakes and simmer for thirty minutes.
Cook the noodles according to the package directions for al dente noodles.
Preheat the oven to 350 degrees.
In a large bowl mix together the ricotta and egg.
In a deep 13x9 baking dish make 4 layers, beginning with a layer of noodles. On top of the noodles, add the sauce, then the ricotta mixture, then the mozzarella, and finally the Parmesan.
Bake uncovered for thirty minutes, and then sprinkle with basil.