This is part of an exercise in OO-programming at Chalmers