prog assign 2, author : Errol INAN