Writting a functionallity