Home work #1 solved