I am currently writing up some lecture notes and would like to have therefore a "\solution" environment which should work basically as the amsthm \proof environment, just writing "Solution." instead of "Proof." at the begin of a solution of an exercise. Of course I can achieve this by switching with
at the appropriate places. While this is working, I would find it nice to have a proper \solution environment which just replicates the \proof environment. Is there an easy way to do this?