Implementing first homework