Experimenting with writing class