Attempts to object oriented solution