Homework for Machine Oriented Programming (MOP) at University of Latvia in 2013