Done some functions
Added draw rectangle