Cook pasta according to package and then drain.
While pasta is cooking, Saute meat and onions over medium heat until no longer pink.
Add sauce to meat mixture and add basil, stir, and let cook for few minutes.
In a separate bowl mix ricotta cheese and 1 egg and beat until combined.
Add drained pasta to the meat sauce and stir until well combined.
In a 9x13 pan, pour 1/3 of the pasta into pan.
Spoon 1/2 the ricotta on to first layer and spread around.
Add shredded cheese.
Repeat layers and finish with the rest of the pasta and one more layer of shredded cheese.
Bake at 350 until cheese is melted and is hot throughout.