Small codes written in class