Homework 11 implemented