Commit wrong code

Code is not working properly, commit wrong code for later reference.