playing with javascript classes. learning