for loops , if statements, recursions and OO