implementation of base functions for adventure with functional programing
new lines