first approach, brutal and just for fun learning Python's syntax