push and pull classes. used loops for repetetive classes